<div class=" admin-content">
<div class="admin-biaogelist">
	
    <div class="listbiaoti am-cf">
      <ul class="am-icon-flag on"> 编辑栏目</ul>
      
      <dl class="am-icon-home" style="float: right;"> 当前位置： <a href="{:U('Index/index')}">首页</a> > <a href="{:U('Cate/index')}">栏目管理</a> > 编辑栏目</dl>

    </div>
	
    <div class="fbneirong">
      <form class="am-form" action="__SELF__" method="post" enctype="multipart/form-data">
      <input type="hidden" name="id" value="{$data.id}">
      <input type="hidden" name="old_image" value="{$data.image}">
        <div class="am-form-group am-cf">
          <div class="zuo">栏目名称：</div>
          <div class="you">
            <input type="text" name="name" value="{$data.name}" class="am-input-sm w-50" id="doc-ipt-email-1" placeholder="请输入栏目名称">
          </div>
        </div>


        <div class="am-form-group am-cf">
          <div class="zuo">排序</div>
          <div class="you">
            <input type="text" name="sort" value="{$data.sort}" class="am-input-sm w-20" id="doc-ipt-email-1" placeholder="数字越大越靠前">
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">栏目类型：</div>
          <div class="you" style="margin-top: 5px;">
            <label class="am-checkbox-inline">
              <input type="radio" <if condition="$data['type'] eq 1">checked</if> checked name="type" value="1">
              文章列表 </label>
            <label class="am-checkbox-inline">
              <input type="radio" <if condition="$data['type'] eq 2">checked</if> name="type" value="2">
              单页 </label>
              <label class="am-checkbox-inline">
              <input type="radio" <if condition="$data['type'] eq 3">checked</if> name="type" value="3">
              图片列表 </label>
              <label class="am-checkbox-inline">
              <input type="radio" <if condition="$data['type'] eq 4">checked</if> name="type" value="4">
              文章+图片列表 </label>
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">选择上级栏目</div>
          <div class="you">
            <select name="parent_id" data-am-selected="{btnWidth: 150, btnSize: 'sm', btnStyle: 'default'}">
              <option value="0">顶级栏目</option>
              <volist name="tree" id="vo">
              <option <if condition="$data['parent_id'] eq $vo['id']">selected</if> value="{$vo.id}"><if condition="$vo['level'] neq 0">└</if>{:str_repeat('─',$vo['level'])}{$vo.name}</option>
              </volist>
            </select>
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">英文名称</div>
          <div class="you">
            <input type="text" name="en_name" value="{$data.en_name}" class="am-input-sm w-30" id="doc-ipt-pwd-1" placeholder="请输入英文名">
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="zuo">上传图片：</div>
          <div class="you" style="height: 45px;">
            <input type="file" name="image" id="doc-ipt-file-1">
          </div>
        </div>
        
        <div class="am-form-group am-cf">
          <div class="zuo">内容：</div>
          <div class="you">
             <textarea name="content" id="content">{$data.content}</textarea>
          </div>
        </div>
        
        <div class="am-form-group am-cf">
          <div class="zuo">备注：</div>
          <div class="you">
            <textarea class="" name="comment" rows="2" id="doc-ta-1">{$data.comment}</textarea>
          </div>
        </div>
        <div class="am-form-group am-cf">
          <div class="you" style="margin-left: 11%;">
          	<input type="submit" class="am-btn am-btn-success am-radius" value="提交">
          </div>
        </div>
      </form>
    </div>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/ueditor.all.min.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/ueditor/lang/zh-cn/zh-cn.js"></script>

<script type="text/javascript">
    UE.getEditor('content', {
        "initialFrameWidth" : "100%",
        "initialFrameHeight" : 300,
        "maximumWords" : 5000
    });
</script>
 
  
 